From: Jonas Dreßler Date: Fri, 18 Mar 2022 13:24:26 +0000 (+0100) Subject: unlockDialog: Move from TapAction to ClickGesture X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~104^2^2~48 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3b76f73fdf8ed083f70d88af9939fb7e2b4dddda;p=gnome-shell.git unlockDialog: Move from TapAction to ClickGesture ClutterClickGesture is a new subclass of ClutterGesture and implements the same functionality as the TapAction and ClutterClickAction did, which is why those will get removed. So move to ClutterClickGesture here for the tap gesture. Part-of: --- diff --git a/js/ui/unlockDialog.js b/js/ui/unlockDialog.js index 50c512fb5..163d16fa0 100644 --- a/js/ui/unlockDialog.js +++ b/js/ui/unlockDialog.js @@ -564,9 +564,9 @@ export const UnlockDialog = GObject.registerClass({ this._activePage = null; - let tapAction = new Clutter.TapAction(); - tapAction.connect('tap', this._showPrompt.bind(this)); - this.add_action(tapAction); + const clickGesture = new Clutter.ClickGesture(); + clickGesture.connect('recognize', () => this._showPrompt()); + this.add_action(clickGesture); // Background this._backgroundGroup = new Clutter.Actor();